package oocl.ita.eordering.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import oocl.ita.eordering.dao.OrderDao;
import oocl.ita.eordering.po.Order;
import oocl.ita.eordering.service.OrderService;

@Service
public class OrderServiceImpl implements OrderService {
	@Autowired
	private OrderDao orderDao;
	
	@Override
	@Transactional
	public List<Order> showOrderByClientId(int cId) {
		// TODO Auto-generated method stub
		return orderDao.showOrderByClientId(cId);
	}

	@Override
	@Transactional
	public int addOrder(Order order) {
		// TODO Auto-generated method stub
		return orderDao.addOrder(order);
	}

}
